From 5b8b892dd6983f5c0cd94cb60e4ec5c25a4fc7c8 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 6 Oct 2017 23:06:52 -0400 Subject: [PATCH] textview: Fix memory handling When cleaning up the text appearance struct, we forgot to add the new strikethrough_rgba member to the copy function. --- gtk/gtktextlayout.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 75c37a583b..564d1be8c8 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -1549,6 +1549,9 @@ gtk_text_attr_appearance_new (const GtkTextAppearance *appearance) if (appearance->underline_rgba) result->appearance.underline_rgba = gdk_rgba_copy (appearance->underline_rgba); + if (appearance->strikethrough_rgba) + result->appearance.strikethrough_rgba = gdk_rgba_copy (appearance->strikethrough_rgba); + return (PangoAttribute *)result; } -- 2.30.2